package com.browan.constellation.weibo;


public class UserInforManager
{
	private String m_UserName;
	private String m_Password;
	private String m_Authorization;

	private UserInforManager()
	{
	}

	private static UserInforManager userInforManager;

	public static UserInforManager getInstence()
	{
		if (null == userInforManager)
		{
			userInforManager = new UserInforManager();
		}
		return userInforManager;
	}

	public String getUserName()
	{
		return m_UserName;
	}

	public void setUserName(String userName)
	{
		m_UserName = userName;
	}

	public String getPassword()
	{
		return m_Password;
	}

	public void setPassword(String password)
	{
		m_Password = password;
	}

	public String getAuthorization()
	{
		if (null == m_Authorization)
		{
			m_Authorization = "Basic " + new String(BASE64Encoder.encode((m_UserName + ":" + m_Password).getBytes()));
		}
		return m_Authorization;
	}

	public void setAuthorization(String authorization)
	{
		m_Authorization = authorization;
	}
}